home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
lcppb.zip
/
LCPPANS.ZIP
/
FNCOUNT.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1991-07-08
|
458b
|
27 lines
// fncount.cpp -- Count function calls
#include <iostream.h>
void test(void);
main()
{
for (int i = 0; i < 10; i++)
test();
}
void test(void)
{
static int count = 0;
count++;
cout << "\nFunction call # " << count;
}
// Copyright (c) 1990 by Tom Swan. All rights reserved
// Revision 1.00 Date: 12/08/1990 Time: 04:17 pm
// Revision 1.01 Date: 07/08/1991 Time: 05:41 pm
// Converted for Borland C++ 2.0